<?php
namespace App\Http\Middleware;

use Closure;

class Activity {

    //前置
//    public function handle($request,Closure $next){
//
//        if(time() < strtotime('2019-08-06')){
//            return redirect('activity0');
//        }
//        return $next($request);
//
//    }

//后置
    public function handle($request,Closure $next){

        $response = $next($request);

        // 执行动作

        return $response;

    }

}